﻿namespace Sustainalytics.ESGRatings.BusinessLogic.Models
{
    public class FileUploadLogs
    {
        public FileUploadLogs()
        {
            Errors = string.Empty;
        }

        public override string ToString()
        {
            return string.Format("Errors: {0}", Errors);
        }

        protected bool Equals(FileUploadLogs other)
        {
            return string.Equals(Errors, other.Errors);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != this.GetType()) return false;
            return Equals((FileUploadLogs) obj);
        }

        public override int GetHashCode()
        {
            return (Errors != null ? Errors.GetHashCode() : 0);
        }

        public string Errors { get; set; }
    }
}
